package com.example.outdoor;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class ImportTable extends Activity implements OnClickListener{
	 Button ImportAvenue,btnObstraction,btnCondition,btnBillboard,btnGoBackImportTable,BtnImportProduct;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.import_tables);
        ImportAvenue =(Button)findViewById(R.id.btnAvenues);
        btnObstraction=(Button)findViewById(R.id.btnObstraction);
        btnCondition=(Button)findViewById(R.id.btnCondition);
        btnBillboard=(Button)findViewById(R.id.btnBillBord);
        btnGoBackImportTable=(Button)findViewById(R.id.btnGoBackImportTables);
        BtnImportProduct=(Button) findViewById(R.id.BtnImportProduct);
        ImportAvenue.setOnClickListener(this);
        btnObstraction.setOnClickListener(this);
        btnCondition.setOnClickListener(this);
        ImportAvenue.setOnClickListener(this);
        btnGoBackImportTable.setOnClickListener(this);
        BtnImportProduct.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.btnAvenues:
			Intent importAvenue =new Intent(ImportTable.this,ImportAvenueFile.class);
			 startActivity(importAvenue);
		break;
		case R.id.btnObstraction:
			Intent importObstraction =new Intent(ImportTable.this,ImportObstractionTable.class);
			 startActivity(importObstraction);
		break;
		case R.id.btnCondition:
			Intent importCondition =new Intent(ImportTable.this,ImportAvenueFile.class);
			 startActivity(importCondition);
		break;
		case R.id.btnBillBord:
			Intent importBillBord =new Intent(ImportTable.this,ImportAvenueFile.class);
			 startActivity(importBillBord);
		break;
		case R.id.btnGoBackImportTables:
			Intent ourGoBackIntent=new Intent(ImportTable.this,Tables.class);
			startActivity(ourGoBackIntent);
		break;
		case R.id.BtnImportProduct:
			Intent ourImportProduct=new Intent(ImportTable.this,ImportProductFile.class);
			startActivity(ourImportProduct);
			break;
		default:
			break;
		}
		
	}

}
